package com.gurid.common.base.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author helen
 * @since 2020/4/29
 */
//@Data
@AllArgsConstructor
@NoArgsConstructor
public class JwtInfo {
    private String id;
    private String nickname;
    private String avatar;
    //权限、角色等
    //不要存敏感信息

    public String getId() {
        return id;
    }
    public JwtInfo setId(String id) {
        this.id = id;
        return this;
    }
    public String getNickname() {
        return nickname;
    }
    public JwtInfo setNickname(String nickname) {
        this.nickname = nickname;
        return this;
    }
    public String getAvatar() {
        return avatar;
    }
    public JwtInfo setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }
}
